package cn.luowb.checkchat.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 收藏
 *
 * @TableName post_collection
 */
@TableName(value = "post_collection")
public class PostCollectionDO {
    /**
     * 收藏ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "uid")
    private Long uid;

    /**
     * 收藏的帖子ID
     */
    @TableField(value = "post_id")
    private Long postId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 收藏ID
     */
    public Long getId() {
        return id;
    }

    /**
     * 收藏ID
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 用户ID
     */
    public Long getUid() {
        return uid;
    }

    /**
     * 用户ID
     */
    public void setUid(Long uid) {
        this.uid = uid;
    }

    /**
     * 收藏的帖子ID
     */
    public Long getPostId() {
        return postId;
    }

    /**
     * 收藏的帖子ID
     */
    public void setPostId(Long postId) {
        this.postId = postId;
    }

    /**
     * 创建时间
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}